wayland: Initialize variable
authorBenjamin Otte <otte@redhat.com>
Mon, 4 Dec 2017 17:28:14 +0000 (18:28 +0100)
committerBenjamin Otte <otte@redhat.com>
Mon, 4 Dec 2017 17:28:53 +0000 (18:28 +0100)
Otherwise we get NULL-warnings when we try to use (read: unref) it.

gdk/wayland/gdkdnd-wayland.c

index d8a3d4edf2d0c23a09c09190ecdc9b0c152fab3a..c676f258ccab5476d1cc65b6f5b3585b962e735b 100644 (file)
@@ -548,6 +548,7 @@ _gdk_wayland_drop_context_new (GdkDisplay            *display,
   context = GDK_DRAG_CONTEXT (context_wayland);
   context->display = display;
   context->is_source = FALSE;
+  context->formats = gdk_content_formats_new (NULL, 0);
 
   return context;
 }